/*
 *  $Id: PrairieHunter.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Air.Creatures {
    public class PrairieHunter: CreatureCard {
        public PrairieHunter(): base("001_a_c_prairie_hunter") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Air;
            Value = 100;
            SetRace<Races.PrairieDweller>();
            Damage = 4;
            Health = 4;
			AddManaCost(ElementType.Air, 5);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add<PrairieHunterAura>();
        }
        public override void SetAbilities(ICollector<AbilityCard> abilities) {
            abilities.Add<Abilities.Sparkbomb>();
        }

        private class PrairieHunterAura: PackAuraAffect {
            public PrairieHunterAura(): base(RaceManager.GetRace<Races.PrairieDweller>()) {}

            public override string Id {
                get { return AffectManager.GetCardId<PrairieHunter>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new PrairieHunterAffect();
            }
        }

        private class PrairieHunterAffect: GroupAffect {
            public PrairieHunterAffect() {
                Add(new Affects.FinishKill(1));
            }

            public override string Id {
                get { return AffectManager.GetCardId<PrairieHunter>("aura"); }
            }
        }
    }
}
